{#<!DOCTYPE html>#}
{#<html lang="zh-CN">#}
{#<head>#}
{#    <meta charset="UTF-8">#}
{#    <meta name="viewport" content="width=device-width, initial-scale=1.0">#}
{#    <title>用户登录</title>#}
{#    <style>#}
{#        * {#}
{#            margin: 0;#}
{#            padding: 0;#}
{#            box-sizing: border-box;#}
{#            font-family: 'Arial', sans-serif;#}
{#        }#}
{##}
{#        body {#}
{#            background-color: #f0f2f5;#}
{#            display: flex;#}
{#            justify-content: center;#}
{#            align-items: center;#}
{#            min-height: 100vh;#}
{#        }#}
{##}
{#        .login-container {#}
{#            background-color: white;#}
{#            padding: 2.5rem;#}
{#            border-radius: 10px;#}
{#            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);#}
{#            width: 100%;#}
{#            max-width: 400px;#}
{#        }#}
{##}
{#        .login-title {#}
{#            text-align: center;#}
{#            margin-bottom: 2rem;#}
{#            color: #1a1a1a;#}
{#            font-size: 2rem;#}
{#            font-weight: 600;#}
{#        }#}
{##}
{#        .form-group {#}
{#            margin-bottom: 1.5rem;#}
{#        }#}
{##}
{#        label {#}
{#            display: block;#}
{#            margin-bottom: 0.7rem;#}
{#            color: #4a4a4a;#}
{#            font-size: 0.95rem;#}
{#        }#}
{##}
{#        input {#}
{#            width: 100%;#}
{#            padding: 1rem;#}
{#            border: 1px solid #ddd;#}
{#            border-radius: 6px;#}
{#            font-size: 1rem;#}
{#            transition: all 0.3s;#}
{#        }#}
{##}
{#        input:focus {#}
{#            outline: none;#}
{#            border-color: #007bff;#}
{#            box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);#}
{#        }#}
{##}
{#        .submit-btn {#}
{#            width: 100%;#}
{#            padding: 1rem;#}
{#            background-color: #007bff;#}
{#            color: white;#}
{#            border: none;#}
{#            border-radius: 6px;#}
{#            font-size: 1.1rem;#}
{#            font-weight: 500;#}
{#            cursor: pointer;#}
{#            transition: background-color 0.3s;#}
{#            margin-top: 1rem;#}
{#        }#}
{##}
{#        .submit-btn:hover {#}
{#            background-color: #0056b3;#}
{#        }#}
{#    </style>#}
{#</head>#}
{#<body>#}
{#    <div class="login-container">#}
{#        <h2 class="login-title">用户登录</h2>#}
{#        <form action="/login" method="post">  <!-- 提交到/login处理 -->#}
{#            <div class="form-group">#}
{#                <label for="user">用户名</label>#}
{#                <input type="text" id="user" name="user" required>#}
{#            </div>#}
{#            <div class="form-group">#}
{#                <label for="passwd">密码</label>#}
{#                <input type="password" id="passwd" name="passwd" required>#}
{#            </div>#}
{#            <button type="submit" class="submit-btn">登录</button>#}
{#        </form>#}
{#    </div>#}
{#</body>#}
{#</html>#}





<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>系统登录</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            background: url({{ url_for('static', filename='images/bg_login.jpg') }}) no-repeat center center fixed;
            background-size: cover;
            font-family: "Microsoft YaHei", sans-serif;
        }
        .login-box {
            width: 350px;
            height: 300px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 10px;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            padding: 20px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
        }
        .logo {
            text-align: center;
            margin-bottom: 20px;
        }
        .logo img {
            width: 100px;
            height: auto;
        }
        .form-group {
            margin-bottom: 20px;
        }
        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }
        .form-group input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            box-sizing: border-box;
        }
        .btn-login {
            width: 100%;
            padding: 10px;
            background: #4CAF50;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
        }
        .btn-login:hover {
            background: #45a049;
        }
    </style>
</head>
<body>
    <div class="login-box">
        <div class="logo">
            <img src="{{ url_for('static', filename='images/logo.png') }}" alt="系统Logo">
        </div>
        <form action="{{ url_for('view01.login') }}" method="post">
            <div class="form-group">
                <label for="user">用户名</label>
                <input type="text" id="user" name="user" required>
            </div>
            <div class="form-group">
                <label for="passwd">密码</label>
                <input type="password" id="passwd" name="passwd" required>
            </div>
            <button type="submit" class="btn-login">登录</button>
        </form>
    </div>
</body>
</html>